package com.aistar.user.config;

import com.aistar.user.util.TokenUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * Created by js on 2019/6/29.
 */
@Configuration
public class BeanConfig {

    @Bean
    public TokenUtil tokenUtil(){
        return new TokenUtil();
    }


    @Bean
    public BCryptPasswordEncoder bCryptPasswordEncoder(){
        return new BCryptPasswordEncoder();
    }

}
